package com.bdqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2021-11-26 
 */
@NoArgsConstructor    //无参的构造方法
@Data
@TableName("sys_user")
public class SysUser implements Serializable {

	private static final long serialVersionUID =  4170708069912395891L;

	/**
	 * 编号
	 */
	@TableId(type = IdType.AUTO)
	private Long usrId;

	/**
	 * 姓名
	 */
	private String usrName;

	/**
	 * 密码
	 */
	private String usrPassword;

	/**
	 * 角色编号
	 */
	private Long usrRoleId;

	/**
	 * 状态
	 */
	private Long usrFlag;


	public Long getUsrId() {
		return usrId;
	}

	public void setUsrId(Long usrId) {
		this.usrId = usrId;
	}

	public String getUsrName() {
		return usrName;
	}

	public void setUsrName(String usrName) {
		this.usrName = usrName;
	}

	public String getUsrPassword() {
		return usrPassword;
	}

	public void setUsrPassword(String usrPassword) {
		this.usrPassword = usrPassword;
	}

	public Long getUsrRoleId() {
		return usrRoleId;
	}

	public void setUsrRoleId(Long usrRoleId) {
		this.usrRoleId = usrRoleId;
	}

	public Long getUsrFlag() {
		return usrFlag;
	}

	public void setUsrFlag(Long usrFlag) {
		this.usrFlag = usrFlag;
	}

	public SysUser(String usrName, String usrPassword, Long usrRoleId, Long usrFlag) {
		this.usrName = usrName;
		this.usrPassword = usrPassword;
		this.usrRoleId = usrRoleId;
		this.usrFlag = usrFlag;
	}
}
